<div class="bjui-pageHeader">
    <form id="pagerForm" data-toggle="ajaxsearch" action="${request.getContextPath()}/InspectionRecord/inspectionRecord?params=1" method="post">
        <div class="bjui-searchBar">
            <g:hiddenField name="SYS_QUERY_NAME" value="inspectionRecord" />
            <g:hiddenField name="EXPORT_CONTENT_NAME" value="Excel" />
            <label>工序名称：</label>
            <input type="text" name="stepDesc" value="${stepDesc}" size="16" placeholder="工序名称"/>&nbsp;
            <label>批次：</label>
            <input type="text" name="lotId" value="${lotId}" size="16" placeholder="批次"/>&nbsp;
            <label>P/N：</label>
            <input type="text" name="partName" value="${partName}" size="16" placeholder="P/N"/>&nbsp;
            <label>不良内容：</label>
            <input type="text" name="unYieldCont" value="${unYieldCont}" size="16" placeholder="不良内容"/>&nbsp;
            <label>处置：</label>
            <input type="text" name="chuZhi" value="${chuZhi}" size="16" placeholder="处置"/>
            <br /><br />
            <label>时间<strong><span class="text-danger">*</span></strong>：</label>
            <input type="text" name="startTime" value="${startTime}" data-rule="required" data-pattern="yyyy-MM-dd"
                   data-toggle="datepicker" placeholder="FROM" size="12" readonly>
            <input type="text" name="endTime" value="${endTime}" data-rule="required" data-pattern="yyyy-MM-dd"
                   data-toggle="datepicker" placeholder="TO" size="12" readonly>&nbsp;
            <button type="submit" class="btn-default" data-icon="search">查询</button>&nbsp;
            <button type="button" class="btn-blue" onclick="javascript:bjuiExportExl('#pagerForm','${request.getContextPath()}/BadProcessAnalysis/exportExcel')"
                    data-icon="file-excel-o" title="导出Excel">导出</button>
        </div>
    </form>
</div>

<div class="bjui-pageContent tableContent">
    <g:if test="${inspectionRecord.size() > 0}">
        <table id="lapEndByBatch" data-toggle="tablefixed" data-width="130%" data-nowrap="true">
            <thead>
            <tr id="t1">
                <g:each in="${tableHeadList}" status="j" var="headInstance">
                    <g:if test="${headInstance!='RN'}">
                        <th><g:message code="${headInstance}" default="${headInstance}"/></th>
                    </g:if>
                </g:each>
            </tr>
            </thead>
            <tbody>
            <g:if test="${inspectionRecord.size()>0}">
                <g:each in="${inspectionRecord}" status="i" var="dataInstance">
                    <tr>
                        <g:each in="${tableHeadList}" status="j" var="headInstance">
                            <g:if test="${headInstance!='RN'}">
                                <td>${dataInstance["${headInstance}"] }</td>
                            </g:if>
                        </g:each>
                    </tr>
                </g:each>
            </g:if>
            <g:else>
                <g:render template="../template/emptyPanel" />
            </g:else>
            </tbody>
        </table>
    </g:if>
</div>
<g:render template="../template/pagination" />